.PHONY : test doc mem

CFLAGS=-Wall -pedantic -std=c99 -lpthread -lrt -g


make:
	-gcc $(CFLAGS) src/*.c -o mycp

test: drop_caches
	-gdb mycp

doc:
	-doxygen Doxyfile
	-cd doc/latex; make
	-cp doc/latex/refman.pdf Relatório.pdf

mem:
	-valgrind --leak-check=full ./mycp

drop_caches:
	-sudo echo 1 >/proc/sys/vm/drop_caches
